package com.yupi.springbootinit.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Component;

/**
 * WebSocket监听类
 * @author 穹龙
 * @date 2025/2/12
 */
@Slf4j
@Component
public class MyWebSocketTopicListener implements ApplicationRunner, Ordered {

    @Override
    public void run(ApplicationArguments args) throws Exception {
        log.info("初始化WebSocket监听器成功");
    }

    @Override
    public int getOrder() {
        return -1;
    }
}
